/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package simplemetrosystem.control;

import simplemetrosystem.control.Exception.HighLightManagerException;
import simplemetrosystem.view.MetroFrame;

/**
 *
 * @author Eric Qian
 */
public class HighLightManager {

    /**
     * 
     * @return
     * @throws simplemetrosystem.control.Exception.HighLightManagerException
     */
    public static HighLightManager getHighLightManager() throws HighLightManagerException {
        if (highLightManager == null) {
            throw new HighLightManagerException();
        }
        return highLightManager;
    }

    /**
     * 
     * @param frame
     * @param elementManager
     * @return
     */
    public static HighLightManager newInstance(MetroFrame frame, ElementManager elementManager) {
        highLightManager = new HighLightManager(frame, elementManager);
        return highLightManager;
    }

    private HighLightManager(MetroFrame frame, ElementManager elementManager) {
        this.frame = frame;
        this.elementManager = elementManager;
    }
    
    public void setHighLight(String elemName){
        
    }
    
    private static HighLightManager highLightManager;
    private MetroFrame frame;
    private ElementManager elementManager;
}
